home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / pxfield.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  485b  |  26 lines

  1. #ifndef _PX_FIELD_TYPE_H_
  2. #define _PX_FIELD_TYPE_H_
  3.  
  4. #include <pxengine.h>
  5. #include "khpxeerr.h"
  6. #include "fldtype.h"
  7.  
  8. struct KH_PXFLD
  9.     {
  10.     KH_FIELD_TYPE type;
  11.  
  12.     char* str;
  13.     double n;
  14.     long date;
  15.     short sh;
  16.  
  17.     KH_PXFLD(double f)    { type = KH_NUMBER; n = f; }
  18.     KH_PXFLD(long f)    { type = KH_DATE; date = f; }
  19.     KH_PXFLD(short f)    { type = KH_SHORT; sh = f; }
  20.  
  21.     KH_PXFLD(char* buf)  { type = KH_STRING, str = buf; }
  22.  
  23.     };
  24.  
  25. #endif _PX_FIELD_TYPE_H_
  26.